You are welcome to use alphaButtons in your applications providing you give credit to me in the about box or in the documentation of your application.
michael.rosander@home.se
http://www.liu.se/ipp/rb
What's the difference between version 1.0 and 2.0?
Almost all code is new. Version 2.0 is a lot more dynamic compared to 1.0 where you just could have the buttons one way and with a fixed set of buttons. In 2.0 you can change:
the button caption, the number of buttons, the button size, the space between buttons, the number of "columns", and so on...
NEW EVENTS
Open() - set the properties, if left empty the default values are used (see below)
Action(index as integer) - fires when a button is clicked on
- index is the number of the current button (1-based)
PROPERTIES
buttonCaption as string
//default this is "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z"
- the text that will be displayed on the buttons (also sets the number of buttons)
buttonWidth as integer
//default 16
buttonHeight as integer
//default 16
buttonSpacing as integer
//default 1 (i.e. the space between buttons)
buttonColumns as integer
//default 7 (number of columns...)
buttonTextFont as string
//default "system"
buttonTextSize as integer
//default 9
buttonTextBold as boolean
//default false (to make the caption bold...)
largeButtonCentered as boolean
//default false (centers the large button...)
largeButtonText as string
//default "Show all" (the caption of the large button)
largeButtonWidth as integer
//default 118 (if set larger than the total column width set equal to it)
horizontalOnly as boolean
//default false (an easy way to get one row of buttons - no need to set buttonColumns)
notEnabled(index) as boolean
//disable a button* ( + update() )
selected as integer
//the selected button* (can also be set in code + update() )
*The buttons are 1-based
METHODS
init() - is called automatically on open, but if changes to height,width or caption is made it must be called again followed by update()
update() - if changes are made, but not to height,width or caption, just update() is enough...
getCaption(index as integer) as string - to get the caption for any of the buttons (not the large button) e.g. theSelectedButtonCaption = me.getCaption(me.selected)